package com.example.xm.mapper;

import com.example.xm.entity.Cartentity;
import com.example.xm.entity.Userentity;
import com.example.xm.entity.vo.CartListVo;

import java.util.List;

/**
* @author tong
* @description 针对表【cart】的数据库操作Mapper
* @createDate 2024-04-13 12:37:40
* @Entity com/example/xm.domain.Cartentity
*/
public interface CartMapper {

    Cartentity selectCart(Integer userId, Integer productId);
    void insert(Cartentity cartentity);
    void updateByPrimaryKeySelective(Cartentity cartentity);

    List<CartListVo> list(Cartentity cartentity);

    void deleteById(Integer id);

    void deleteCart(Integer productId, Integer userId);
}




